using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Attachments
{
    /// <summary>
    /// <para>Upgrade Attachments</para>
    /// <para>Upgrades the attachments functionality on the data.</para>
    /// <para>升级数据的附件功能。</para>
    /// </summary>    
    [DisplayName("Upgrade Attachments")]
    public class UpgradeAttachments : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpgradeAttachments()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The feature class with attachments enabled.</para>
        /// <para>启用了附件的要素类。</para>
        /// </param>
        public UpgradeAttachments(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Upgrade Attachments";

        public override string CallName => "management.UpgradeAttachments";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_dataset, _out_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The feature class with attachments enabled.</para>
        /// <para>启用了附件的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Updated Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public UpgradeAttachments SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}